<div class='box' style='min-width:500px;margin:20px;'>
	<div class='filter silver cap'>
		<?php $type=Yii::app()->params['flag']['referenceType'][$rs->reference_type_id];
			echo $type 
		?> 
		Reference Quick View
	</div>
	
	<div style='float:none;width:width:300px;'>
		<div><span class="describe">[<?php echo 'WM'.str_pad($rs->id,3,'0',STR_PAD_LEFT); ?>]</span> <?php echo $rs->name ?></div> 
		<div><?php echo $rs->album->name ?> (<?php echo $rs->year ?>)</div>
		<div><?php echo Fish::xr(
			Fish::getRow('artist',$rs->album->artist_id),'name'); ?></div>
		<div>Price : RM <?php echo number_format($rs->price,2) ?></div>
	</div>
	<div style='float:none;width:200px;'>
		<div >
		<?php if ($status['result']===false): ?>
			<div >
				Reference <?php echo $type ?> is not Available
			</div>
			<div >
				Borrowed <?php echo $status['date_borrow'] ?>
			</div>
			<div >
				By <?php echo $status['user_name'] ?>
			</div>
		<?php else: ?>
			Reference <?php echo $type ?> is Available
		<?php endif ?>
		</div>
	</div>
	<div class='clear'></div>
	<div class="filter silver">
		Recorded by 
		<?php 
			$users = Fish::getRow('user',$rs->user_create);
			echo $users['name']
		?> at [
			<?php echo date('Y M',strtotime($rs->date_create)) ?>
		]
	</div>
	<div class='filter blue tail'>
		<?php
			$label = '<button class="bt3">Borrow</button>';
			$rurl= array('create','id'=>$rs->id);
			$htmlOption = array();
			echo ($status['result'])?CHtml::link($label,$rurl,$htmlOption):' ';
		?>
	</div>
</div>